﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Artemis;

namespace JAWWS
{
    class GameNode : SceneGraphNode
    {
        /*
         * This class is the God Node of the overal game, this node has information about 
         * global transformation matricies and also can add children and siblings
         * this node cannot have any siblings, only a child. 
         */
        public GameNode(MainForm main)
        {
            this.child = null;
            this.sibling = null;
            this.LocalTransMatrix = this.IdMatrix;
        }
        public  override void  draw()
        {
        	// do nothing
        }
        public void updateNode(float transX, float transY, float transZ,
                                          float scalarX, float scalarY, float scalarZ,
                                          float rotAng, float xaxis, float yaxis, float zaxis)
        {
            GL.glMatrixMode(GLenum.GL_MODELVIEW);
            GL.glPushMatrix();
                GL.glLoadIdentity();
                GL.glGetFloatv(GLenum.GL_MODELVIEW_MATRIX, this.LocalTransMatrix);
            GL.glPopMatrix();
        }
    }
}
